-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EthicalAd: specific placement for Antora and mdBook #475
Conversation
Use our heuristic to detect the documentation tool/theme and add specific `--readthedocs-*` CSS variables based on that for known tools/themes. Reference: readthedocs/readthedocs.org#11849 (comment)
element = document.querySelector(selector); | ||
|
||
if (this.elementAboveTheFold(element)) { | ||
placement.classList.add("ethical-alabaster"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this something more generic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We should use something like ethical-light-theme
; considering that we are using it for that use case. However, it's not a 1:1 match. We will need to keep -alabaster
as well since there are some thing very specific to it, I think. I opened #477
Would be good to merge this 👍 |
Yeah, thanks for the review. This PR is based on #473. We can merge it once we have the underlying one merged as well. The referencing PR seems to be pretty close if we agree on the CSS variables. |
Based on #473